Search Java Code Snippets


  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.





#Java - Code Snippets for '#Org.apache.ace.feedback.Descriptor' - 1 code snippet(s) found

 Sample 1. Code Sample / Example / Snippet of org.apache.ace.feedback.Descriptor

    public synchronized void getRange() throws Exception {

final Descriptor range = new Descriptor(TARGET_ID, 1, new SortedRangeSet("1-10"));

m_task.getDescriptor(new InputStream() {

int m_count = 0;

byte[] m_bytes = (range.toRepresentation() + " ").getBytes();

@Override

public int read() throws IOException {

if (m_count < m_bytes.length) {

byte b = m_bytes[m_count];

m_count++;

return b;

} else {

return -1;

}

}

});

}


   Like      Feedback      org.apache.ace.feedback.Descriptor



Subscribe to Java News and Posts. Get latest updates and posts on Java from Buggybread.com
Enter your email address:
Delivered by FeedBurner